home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 31 / Amiga Format CD31 (1998-09-02)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1998-10].iso / -seriously_amiga- / hardware / transadf / source / dos_fprintf.c < prev    next >
C/C++ Source or Header  |  1998-07-20  |  1KB  |  34 lines

  1. /* dos_printf.c - Implement FPrintf() which is missing from DICE's regargs Amiga.lib
  2. ** Copyright (C) 1997,1998 Karl J. Ots
  3. ** 
  4. ** This program is free software; you can redistribute it and/or modify
  5. ** it under the terms of the GNU General Public License as published by
  6. ** the Free Software Foundation; either version 2 of the License, or
  7. ** (at your option) any later version.
  8. ** 
  9. ** This program is distributed in the hope that it will be useful,
  10. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ** GNU General Public License for more details.
  13. ** 
  14. ** You should have received a copy of the GNU General Public License
  15. ** along with this program; if not, write to the Free Software
  16. ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  17. */
  18.  
  19. #include <exec/types.h>
  20. #include <clib/dos_protos.h>
  21.  
  22. #include <stdarg.h>
  23.  
  24. LONG FPrintf (BPTR fh, STRPTR format, ...)
  25. {
  26.   va_list va;
  27.   LONG n;
  28.   
  29.   va_start (va, format);
  30.   n = VFPrintf (fh, format, va);
  31.   va_end (va);
  32.   return n;
  33. }
  34.